package work.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import work.dao.UserDao;
import work.po.User;

import java.sql.SQLException;

@Service
public class UserService {

    @Autowired
    UserDao userDao;

    public User login(String userName, String password) throws SQLException {
        return userDao.login(userName, password);
    }

    public static int regist(User user) {
        return 0;
    }
}
